package com.project.web.intfc;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan("com.project.mapper.*")    // 指定要扫描的mapper类的包路径
@ComponentScan({"com.project.*", "org.yun.*"})    // 重新定义Spring扫描的包路径
//@ServletComponentScan
@Cacheable
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}

